package com.hzqy.web.ac.userActivityInfo;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hzqy.service.userActivityInfo.UserActivityInfoServiceBean;
import com.hzqy.web.vo.UserActivityInfoVo;

@Controller
@RequestMapping("/userActivityInfo")
public class UserActivityInfoAction {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	@Resource
	private UserActivityInfoServiceBean userActivityInfoServiceBean;
	
	@RequestMapping("/insertUserActivityInfo")
	@ResponseBody
	public Object insertUserActivityInfo(UserActivityInfoVo userActivityInfoVo) {
		return userActivityInfoServiceBean.insertUserActivityInfo(userActivityInfoVo);
	}
	
	@RequestMapping("/updateUserActivityInfo")
	@ResponseBody
	public Object updateUserActivityInfo(UserActivityInfoVo userActivityInfoVo) {
		return userActivityInfoServiceBean.updateUserActivityInfo(userActivityInfoVo);
	}
	
	@RequestMapping("/selectUserActivityInfo")
	@ResponseBody
	public Object selectUserActivityInfo(UserActivityInfoVo userActivityInfoVo) {
		Map<String,Object> map = new HashMap<String,Object>();
		UserActivityInfoVo uaiv = userActivityInfoServiceBean.selectUserActivityInfo(userActivityInfoVo);
		map.put("UserActivityInfoVo",uaiv);
		return map;
	}
	
	@RequestMapping("/updateUserActivityInfoCompetite")
	@ResponseBody
	public Object updateUserActivityInfoCompetite(UserActivityInfoVo userActivityInfoVo) {
		return userActivityInfoServiceBean.updateUserActivityInfoCompetite(userActivityInfoVo);
	}
	
	@RequestMapping("/selectContentList")
	@ResponseBody
	public Object selectContentList(String catalogIds,String f_cc_onlinedate) {
		return userActivityInfoServiceBean.selectContentList(catalogIds,f_cc_onlinedate);
	}
	
}
